<div class="ctrinhs index">
	<!-- <h2><?php __('Danh sách công trình');?></h2> -->
	<table  class="bordered" cellpadding="0" cellspacing="0">
	<tr>
		<th><?php echo $this->Paginator->sort('STT','id');?></th>
			<th><?php echo $this->Paginator->sort('Chủ đầu tư','chudaut_id');?></th>
			<th><?php echo $this->Paginator->sort('Đơn vị thi công','dvthicong_id');?></th>
			<th><?php echo $this->Paginator->sort('Hình thức đầu tư','hthucdaut_id');?></th>
			<th><?php echo $this->Paginator->sort('Tên công trình','tenctrinh');?></th>
			<th><?php echo $this->Paginator->sort('Tiến độ','tiendo');?></th>
			<th><?php echo $this->Paginator->sort('Địa điểm xây dựng','ddiemxd');?></th>
			<th><?php echo $this->Paginator->sort('Ngày bắt đầu','ngaybd');?></th>
			<!--<th class="actions"><?php __('Actions');?></th>-->
		
			<th class="actions"><?php __('Điều chỉnh');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($ctrinhs as $ctrinh):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $ctrinh['Ctrinh']['id']; ?>&nbsp;</td>
		<td>
			<?php echo $ctrinh['Chudaut']['tenchudautu']; ?>
		</td>
		<td>
			<?php echo $ctrinh['Dvthicong']['tendvthicong']; ?>
		</td>
		<td>
			<?php echo $ctrinh['Hthucdaut']['tenht']; ?>
		</td>
		
		<td><?php echo $ctrinh['Ctrinh']['tenctrinh']; ?>&nbsp;</td>
		<td><?php echo $ctrinh['Ctrinh']['tiendo']; ?>&nbsp;</td>
		<td><?php echo $ctrinh['Ctrinh']['ddiemxd']; ?>&nbsp;</td>
		<td><?php echo $ctrinh['Ctrinh']['ngaybd']; ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('View', true), array('action' => 'view', $ctrinh['Ctrinh']['id'])); ?>
			<?php echo $this->Html->link(__('Sửa', true), array('action' => 'edit', $ctrinh['Ctrinh']['id'])); ?>
			<?php echo $this->Html->link(__('Xóa', true), array('action' => 'delete', $ctrinh['Ctrinh']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $ctrinh['Ctrinh']['id'])); ?>
			<?php echo $this->Html->link(__('Hạng mục', true), array('controller'=>'hangmucs','action' => 'index', $ctrinh['Ctrinh']['id'])); 

			?>
		
			<?php echo $this->Html->link(__('Quyết định', true), array('controller'=>'quyetdinhs','action' => 'index', $ctrinh['Ctrinh']['id'])); 

			?>
			<br><br>
			<?php echo $this->Html->link(__('Báo cáo', true), array('controller'=>'bcs','action' => 'index', $ctrinh['Ctrinh']['id'])); 

			?>
			<?php echo $this->Html->link(__('Căn cứ', true), array('controller'=>'bbs','action' => 'index1', $ctrinh['Ctrinh']['id'])); 

			?>
			<?php echo $this->Html->link(__('Công văn', true), array('controller'=>'Thuyetminhs','action' => 'index1', $ctrinh['Ctrinh']['id'])); 

			?>
<br><br>
			<?php echo $this->Html->link(__('Nguồn vốn', true), array('controller'=>'tiens','action' => 'index', $ctrinh['Ctrinh']['id'])); 

			?>
			
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<!-- <p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));
	?>	</p> -->

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('Lùi lại', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('Tiếp theo', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
	<div class="actions">
	<!-- <h3><?php __('Actions'); ?></h3> -->
	<ul>
		<li><?php echo $this->Html->link(__('Thêm công trình', true), array('action' => 'add')); ?></li>
		
	</ul>
</div>
</div>
